package com.an.java.javaall.suafa;

import java.util.Arrays;

public class Go {

    public static void main(String[] args) {
        int[] a = new int[]{4, 8 , 5, 6 ,9 ,88 ,0,33};
        System.out.println("冒泡测试：");
        Sort.bubbleSort(a);
        System.out.println(Arrays.toString(a));
        a = new int[]{4, 8 , 5, 6 ,9 ,88 ,0,33};
        System.out.println("选择排序测试：");
        Sort.selectSort(a);
        System.out.println(Arrays.toString(a));

        a = new int[]{4, 8 , 5, 6 ,9 ,88 ,0,33};
        System.out.println("插入排序测试：");
        Sort.insertSort(a);
        System.out.println(Arrays.toString(a));

        a = new int[]{4, 8 , 5, 6 ,9 ,88 ,0,33};
        System.out.println("希尔排序测试：");
        Sort.shellSort2(a);
        System.out.println(Arrays.toString(a));
    }
}
